<div class="solicitudes form">
<?php echo $this->Form->create('Solicitude');?>
	<fieldset>
 		<legend><?php __('Editar Solicitud'); ?></legend>
	<?php		
		echo $this->Form->input('id');
		echo $this->Form->input('convocatoria_id',array('type'=>'hidden','value'=>$convocatoria['Convocatoria']['id']));
		echo $this->Form->input('nombre_convocatoria',array('type'=>'hidden','value'=>$convocatoria['Perfile']['cargo']." - ".$convocatoria['Convocatoria']['fecha_inicio']));	
	?>
		<p>
			<span style="font-weight:bold; margin-left:30px; font-size:16px;">CONVOCATORIA:</span>
			<fieldset style="margin-left:40px; margin-right:40px; background:#F7F7CD;">
				<table style="background:#F7F7CD;">
					<tr>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Cargo: </span><?php echo $convocatoria['Perfile']['cargo'];?></td>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Area: </span><?php echo $convocatoria['Perfile']['area'];?></td>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Nivel Profesional: </span><?php echo $convocatoria['Perfile']['nivel_estudios'];?></td>
					</tr>
					<tr>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Salario: </span><?php echo $convocatoria['Convocatoria']['salario'];?></td>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Tipo de Contrato: </span><?php echo $convocatoria['Convocatoria']['tipo_contrato'];?></td>
						<td style="background:#F7F7CD;"><span style="font-weight:bold; color:#D8531E;">Departamentos: </span><?php echo $convocatoria['listado_departamentos'];?></td>
					</tr>				
				</table>
				<span style="font-weight:bold; color:#136D3D;">Solicitante: </span><?php echo $solicitante['User']['nombre'];?><br/>
				<span style="font-weight:bold; color:#136D3D;">Aprobador: </span><?php echo $aprobador['UserAprobador']['nombre'];?>
				<span style="font-weight:bold; color:#136D3D;"> Dependencia: </span><?php echo $aprobador['UserAprobador']['dependencia'];?><br/>				
			</fieldset>
		</p>
		<table>
			<tr>
				<td><?php echo $this->Form->input('proyecto');?></td>
				<?php $estados = array('Aprobada','Rechazada','En espera');?>			
				 
				<td><?php echo $this->Form->input('estado_solicitud');?></td>
				<td><?php echo $this->Form->input('observacion');						  
				?></td>
			</tr>
			<tr>
				<td colspan="3"><?php echo $this->Form->input('fecha_aprobacion');?></td>
			</tr>
		</table>		
	<?php		
		
		echo $this->Form->input('user_aprobador_id',array('type'=>'hidden','value'=>$aprobador['UserAprobador']['id']));
		echo $this->Form->input('user_id',array('type'=>'hidden','value'=>$solicitante['User']['id']));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Solicitude.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Solicitude.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Solicitudes', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Convocatorias', true), array('controller' => 'convocatorias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Convocatoria', true), array('controller' => 'convocatorias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User Aprobador', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>